package com.itheima.d5_synchronized_method;

import com.itheima.d3_thread_safe.Ticket;

public class Ticketsell {
    public static void main(String[] args) {
        //创建线程对象
        Ticket ticket = new Ticket();
        //创建多线程
        Thread t1 = new Thread(ticket,"窗口1");
        Thread t2 = new Thread(ticket,"窗口2");
        Thread t3 = new Thread(ticket,"窗口3");
        //启动多线程
        t1.start();
        t2.start();
        t3.start();
    }
}
